#!usr/bin/python

import re

f1 = open("f:/a.txt","r")
count = 0
for s in f1:
    li = re.findall(r"hello",s)
    if len(li)>0:
        count += len(li)

print "count :",count
